package util;

import auto.Location;

/**
 *
 * @author Jonas
 */
public class CategoricData {
    String categoric;

    public CategoricData(){}

    // TODO gewenste dependency? Alternatief om af te leiden uit location?
    public CategoricData(Location location){
        String locationString = location.toString();
        char lastChar = locationString.charAt(locationString.length()-1);
        if(lastChar=='0')
            categoric = "zero";
        if(lastChar=='1')
            categoric = "one";
        if(lastChar=='2')
            categoric = "two";
        if(lastChar=='3')
            categoric = "three";
        if(lastChar=='4')
            categoric = "four";
        if(lastChar=='5')
            categoric = "five";
        if(lastChar=='6')
            categoric = "six";
        if(lastChar=='7')
            categoric = "seven";
        if(lastChar=='8')
            categoric = "eight";
        if(lastChar=='9')
            categoric = "nine";
    }

    @Override
    public String toString() {
        return "CategoricData: "+categoric;
    }
}
